<template>
  <div class="Count">
    <button @click="changeMsg('NB')">修改msg</button>
    <button @click="getMovie">请求电影</button>
  </div>
</template>

<script>
import { mapActions, mapMutations } from "vuex";
export default {
  name: "Count",
  methods: {
    //mapMutations 映射 在methods生成对应的方法
    ...mapMutations("Movie", ["changeMsg"]),
    ...mapActions("Movie", ["getMovie"]),
  },
};
</script>

<style>
.Count {
  width: 300px;
  height: 200px;
  background: greenyellow;
}
</style>
